import request from '@/utils/request'

// 查询供电电源信息列表
export function listCsSupplyMainsInfo(query) {
    return request({
        url: '/mine/csSupplyMainsInfo/list',
        method: 'get',
        params: query
    })
}

// 查询供电电源信息详细
export function getCsSupplyMainsInfo(id) {
    return request({
        url: '/mine/csSupplyMainsInfo/' + id,
        method: 'get'
    })
}

// 新增供电电源信息
export function addCsSupplyMainsInfo(data) {
    return request({
        url: '/mine/csSupplyMainsInfo',
        method: 'post',
        data: data
    })
}

// 修改供电电源信息
export function updateCsSupplyMainsInfo(data) {
    return request({
        url: '/mine/csSupplyMainsInfo',
        method: 'put',
        data: data
    })
}

// 删除供电电源信息
export function delCsSupplyMainsInfo(id) {
    return request({
        url: '/mine/csSupplyMainsInfo/' + id,
        method: 'delete'
    })
}
